package com.example.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
* <p>
* 物品领用记录表
* </p>
*
* @author wsl
* @since 2022-04-11
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("gs_receive_record")
@ApiModel(value = "GsReceiveRecord对象", description = "物品领用记录表")
public class GsReceiveRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("物品申请表编号")
    private Integer gsPyId;

    @ApiModelProperty("物品编号")
    private String code;

    @ApiModelProperty("数量")
    private Integer num;

    @ApiModelProperty("领取员工编号")
    private Integer empId;

    @ApiModelProperty("是否需要归还")
    private Integer isNeedRestore;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;


}
